package net.vanchu.mortgagecalculator.mortgage.resultShow;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

/**
 * Created by Granton on 2016/12/26.
 */
public interface ResultShowContract {

    String SINGLE_REPAY_SUMMARY_KEY = "singleRepaySummary";

    String MIX_REPAY_SUMMARY_KEY = "mixRepaySummary";

    interface View {

        void showSingleLoanResult(SingleWayResultDataAdapter[] dataAdapters,
                                  String leftTotalValueToShow, String rightTotalValueToShow);

        void showMixLoanResult(MixWayResultDataAdapter[] dataAdapters,
                               String leftTotalValueToShow, String rightTotalValueToShow);


        void showTotalPrincipal(String principalStrToShow);
    }

    interface Presenter {
        void extractData(Intent intent);

        void performSetRemindDate(int date);

        void shareResult(Activity activity);

        void onSaveInstanceState(Bundle outState);

        void onRestoreInstanceState(Bundle savedInstanceState);
    }
}